package com.example.v3admin.common.result;

import lombok.Getter;

@Getter
public class BusinessException extends  RuntimeException{

    public ResultCode resultCode;

    public BusinessException(ResultCode errorCode){
        super(errorCode.getMessage());
        this.resultCode = errorCode;
    }

    public BusinessException(String message){
        super(message);
    }
}
